load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "keysutils",
    testonly = 1,
    srcs = ["pretty_scanner.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/testutils/keysutils",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/keys",
        "//pkg/roachpb",
        "//pkg/sql/rowenc/keyside",
        "//pkg/sql/sem/tree",
        "//pkg/util/encoding",
        "//pkg/util/keysutil",
    ],
)

go_test(
    name = "keysutils_test",
    size = "small",
    srcs = ["pretty_scanner_test.go"],
    embed = [":keysutils"],
    deps = [
        "//pkg/keys",
        "//pkg/roachpb",
        "//pkg/testutils",
        "//pkg/util/encoding",
    ],
)
